package com.hm.base.def;

/**
 * @author shishun.wang
 * @date 下午3:38:54 2017年5月26日
 * @version 1.0
 * @describe
 */
public enum UserSexEnum {

	MAN(0, "男"),

	WOMAN(1, "女");

	private int status;

	private String desc;

	private UserSexEnum(int status, String desc) {
		this.status = status;
		this.desc = desc;
	}

	public String desc() {
		return this.desc;
	}

	public int status() {
		return this.status;
	}

	public static UserSexEnum trance(String status) {
		for (UserSexEnum sexEnum : UserSexEnum.values()) {
			if (sexEnum.name().equals(status)) {
				return sexEnum;
			}
		}
		return null;
	}
}
